/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.uc.domain.req;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

import com.xy.lang.validation.annotation.AlertMessage;

/**
 *
 *
 * @author zsp
 * @date 2020-8-20
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class ListUserGroupRequest {

	@NotNull(message = "pageIndexRequired")
	@AlertMessage(code = "pageIndexRequired", msg = "页索引不能为空")
	private Integer pageIndex;

	@NotNull(message = "pageSizeRequired")
	@AlertMessage(code = "pageSizeRequired", msg = "页大小不能为空")
	private Integer pageSize;

	/**
	 * 用户分组类型：0-公司/部门
	 */
	private Integer type;
	/**
	 * 用户分组编码
	 */
	private String userGroupCode;
	/**
	 * 简称
	 */
	private String userGroupAbbr;
	/**
	 * 父用户分组Id
	 */
	private Long parentUserGroupId;
	/**
	 * 用户分组名称
	 */
	private String userGroupName;
	/**
	 * 是否查询上级分类
	 */
	private boolean withParent;
	/**
	 * 是否查询角色
	 */
	private boolean withRole;

}
